package flyweight;

/**
 * @author shenhan
 * @create 2020/4/3 17:03
 * @description
 */
public class ConcreteWebSite extends WebSite {
    private String type;

    public ConcreteWebSite(String type) {
        this.type = type;
    }

    @Override
    public void use(User user) {
        System.out.println("网站的发布形式为：" + type + " , 使用者为" + user.getName());
    }
}
